home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: What does the -O option do???!!!
- Date: 10 Feb 1996 23:27:12 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb10162712@qcd.lanl.gov>
- References: <4ehger$cj9@mark.ucdavis.edu> <4emlsq$odt@airdmhor.gen.nz>
- <pronet01.34.003B9BB5@indirect.com> <823827008snz@genesis.demon.co.uk>
- <4fiphrINNrvr@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 10 Feb 1996 10:52:43 -0800
-
- In article <4fiphrINNrvr@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca
- (Kazimir Kylheku) writes:
- <snip>
- If you write your own free() with different semantics, you would
- not want the
- compiler messing with that. It's just another function, after
- all. Some
- compilers have special directives that you can apply to function
- prototypes
- that give a hint to the compiler (for example, hints like "this
- function does
- not return, so you may treat client code accordingly").
-
- It is precisely for this reason that the standard is careful. If you
- define your own function called free, in that case the compiler gets
- the permission to do whatever it pleases: the constraints of nice
- behaviour that the standard places on it no longer holds :-)
-
- Cheers
- Tanmoy--
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-